package com.zzf.concurrent.example.single;

/**
 * @author GaoFeng2017
 * @date 2019/8/12 19:15
 */
public class StaticLoadSingleBean {
    private static class SingleBean {

        private static StaticLoadSingleBean singleBean = new StaticLoadSingleBean();

        static StaticLoadSingleBean getSingleBean() {
            return singleBean;
        }
    }

    public static StaticLoadSingleBean getInstance() {
        return SingleBean.getSingleBean();
    }
}
